import 'package:get/get.dart';
import 'package:juming_test/view_models/home/home_banner_view_model.dart';
import 'package:juming_test/view_models/home/home_domain_view_model.dart';
import 'package:juming_test/view_models/home/home_kingkong_view_model.dart';
import 'package:juming_test/view_models/home/home_notice_view_model.dart';

class HomeLogic extends GetxController {
  // bannerViewModel
  final HomeBannerViewModel bannerViewModel = Get.put(HomeBannerViewModel());
  // domainViewModel
  final HomeDomainViewModel domainViewModel = Get.put(HomeDomainViewModel());
  // kingkongViewModel
  final HomeKingkongViewModel kingkongViewModel = Get.put(
    HomeKingkongViewModel(),
  );
  // noticeViewModel
  final HomeNoticeViewModel noticeViewModel = Get.put(HomeNoticeViewModel());
  // 是否显示所有域名数据
  final RxBool showAllData = true.obs;

  // 折叠域名数据
  void foldAction() => showAllData.toggle();
}
